#ifndef __DEVICE_CONFIGURE_H__
#define __DEVICE_CONFIGURE_H__

#define DEVICE_SERIAL_NUMBER_SIZE 12

#define DEVICE_VERSION_STR_SIZE (32)
#define DEVICE_VERSION_STR_DATA "LOCK-STD.V1.0.202401051725"

#define DEVICE_TYPE_OF_THIS (1)

#define PROTOCOL_PACK_MAX_SIZE 300

// linux, mcu
// enum DEVICE_PLATFORM_ENUM
// {// cannot use this
//     DEVICE_PLATFORM_LINUX=0,
//     DEVICE_PLATFORM_C99_MCU,
//     DEVICE_PLATFORM_C51_MCU
// };
#define DEVICE_PLATFORM_LINUX 0
#define DEVICE_PLATFORM_C99_MCU 1
#define DEVICE_PLATFORM_C51_MCU 2
#define DEVICE_PLATFORM_CONFIGURE DEVICE_PLATFORM_LINUX

#define DEVICE_MCU_COMMON_STR_SIZE PROTOCOL_PACK_MAX_SIZE

#define DEVICE_MCU_DEBUG_UART 1

#define DEV_UPGRADE_NAME "upgrd"
#if DEVICE_PLATFORM_CONFIGURE == DEVICE_PLATFORM_C51_MCU
#define DEV_UPGRADE_MAX_SIZE (50 * 1024)
#else
#define DEV_UPGRADE_MAX_SIZE (50 * 1024)
#endif

#endif
